/*
 * @Author: your name
 * @Date: 2020-09-13 10:52:59
 * @LastEditTime: 2020-09-13 17:37:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \woniutaofang\lib\components\house_widget.dart
 */

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:woniutaofang/utils/theme_utils.dart';

import 'house_center_widget.dart';

class HouseWidget extends StatefulWidget {
  HouseWidget({Key key, this.houselist}) : super(key: key);
  final List houselist;
  @override
  _HouseWidgetState createState() => _HouseWidgetState();
}

class _HouseWidgetState extends State<HouseWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      width: ScreenUtil().setWidth(750),
      padding: EdgeInsets.all(10),
      child: Column(
        children: <Widget>[
          Container(
            padding: EdgeInsets.only(
              bottom: ScreenUtil().setHeight(30),
            ),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: <Widget>[
                Expanded(
                  child: Text(
                    '热门楼盘',
                    style: TextStyle(
                        fontWeight: FontWeight.bold,
                        fontFamily: 'Roboto',
                        fontSize: ScreenUtil().setSp(28.0)),
                  ),
                ),
                Container(
                  child: Row(
                    children: <Widget>[
                      Text(
                        '更多',
                        style: TextStyle(fontSize: ScreenUtil().setSp(24.0)),
                      ),
                      Icon(
                        Icons.keyboard_arrow_right,
                        size: ScreenUtil().setSp(48.0),
                      )
                    ],
                  ),
                )
              ],
            ),
          ),
          HouseCenterWidget(list: widget.houselist)
        ],
      ),
    );
  }
}
